package com.bos.data.repositories.jpa;

import com.bos.data.model.BosCustomerModel;
import com.bos.data.model.SalesModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

public interface CustomerJPARepository extends JpaRepository<BosCustomerModel, Integer>, JpaSpecificationExecutor<BosCustomerModel> {
    @Query("select count(*) from BosCustomerModel where openId=?1")
    int findBosCustomerModelByOpenId(String openId);
}
